<?php

class LoginServices {

    public function __construct() {
        
    }

    function log($login, $pwd) {
        if (($login == 'Vacelet') && ($pwd == '42')) {
            return json_encode(array(
                'success' => true,
                'dir' => 'nicvac',
                'name' => 'Nicolas Vacelet'
            ));
        } else {
            return json_encode(array(
                'success' => false
            ));
        }
    }

}
